package com.yunti.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunti.springboot.po.Class;
import com.yunti.springboot.vo.req.ClassReq;
import com.yunti.springboot.vo.res.ClassRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ClassMapper extends BaseMapper<Class> {
    List<ClassRes> getClassListPage(@Param("req") ClassReq req, @Param("page") Page page);

    List<ClassRes> getClassByYear(@Param("req") ClassReq grade);
    List<ClassRes> getClassByGrade(@Param("req") ClassReq grade);

    List<ClassRes> getAllYear();

}
